package org.dromara.system.domain.bo;

import org.dromara.system.domain.JwLeaveInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 请假信息业务对象 jw_leave_info
 *
 * @author Lion Li
 * @date 2024-04-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = JwLeaveInfo.class, reverseConvertGenerate = false)
public class JwLeaveInfoBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 请假类型
     */
    @NotBlank(message = "请假类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 请假日期
     */
    @NotNull(message = "请假日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date date;

    /**
     * 开始时间
     */
    @NotNull(message = "开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date startTime;

    /**
     * 结束时间
     */
    @NotNull(message = "结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date endTime;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 审核老师编号
     */
    @NotBlank(message = "审核老师编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String teacherId;

    /**
     * 通过状态
     */
    @NotBlank(message = "通过状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;


}
